package com.neu.pojo;

public class Room {
	private String location;//位置 例：A301
	private String kind;//房屋类型 icu 普通病房等
	private int room;//容纳空间
	private int curvalue;//已入住人数
	private Worker property;//物业
	
	public Room() {
		super();
	}
	public Room(String location) {
		super();
		this.location = location;
	}
	public Room(String location, String kind, int room, int curvalue, Worker property) {
		super();
		this.location = location;
		this.kind = kind;
		this.room = room;
		this.curvalue = curvalue;
		this.property = property;
	}
	
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getKind() {
		return kind;
	}
	public void setKind(String kind) {
		this.kind = kind;
	}
	public int getRoom() {
		return room;
	}
	public void setRoom(int room) {
		this.room = room;
	}
	public int getCurvalue() {
		return curvalue;
	}
	public void setCurvalue(int curvalue) {
		this.curvalue = curvalue;
	}
	public Worker getProperty() {
		return property;
	}
	public void setProperty(Worker property) {
		this.property = property;
	}
	@Override
	public String toString() {
		return "{\"location\":\"" + location + "\",\"kind\":\"" + kind + "\",\"room\":\"" + room + "\",\"curvalue\":\""
				+ curvalue + "\",\"property\":\"" + property + "\"}";
	}
}
